﻿using System;
using Microsoft.SharePoint;

namespace ZhukBlogLinqExamples.Model.Meta
{
    public class EntityLockInfo
    {
        public SPFile.SPLockType LockType { get; set; }
        public string LockId { get; set; }
        public DateTime LockExpires { get; set; }
        public DateTime LockedDate { get; set; }
        public SPUser LockedByUser { get; set; }

        public EntityLockInfo(SPFile file)
        {
            LockType = file.LockType;
            LockId = file.LockId;
            LockExpires = file.LockExpires;
            LockedByUser = file.LockedByUser;
            LockedDate = file.LockedDate;
        }
    }
}
